<?php
/**
 ***** 扶摇而上、抱守本真 ******
 * @author Dana
 * @Date 2021/6/24
 */

class format{
    public static function number($number, $decimal = 2, $decimals = '.', $thousands = ',')
    {
        return number_format($number, $decimal,$decimals,$thousands);
    }

    public static function integer($number)
    {
        return self::number($number,0);
    }
}

print Format::number(10345.154).PHP_EOL;
print Format::integer(10345.154).PHP_EOL;